package edu.whpu.sztz.dao.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import edu.whpu.sztz.dao.SuperDao;

public class SuperDaoImpl extends HibernateDaoSupport implements SuperDao {

	@Resource(name="hibernateTemplate")
	public void setSuperHibernateTemplate(HibernateTemplate hibernateTemplate)
	{
		super.setHibernateTemplate(hibernateTemplate);
	}
	
	@Override
	public void add(Object object) {
		this.getHibernateTemplate().save(object);
	}
	
	@Override
	public void delete(Object object) {
		this.getHibernateTemplate().delete(object);
	}
	
	@Override
	public void update(Object object) {
		this.getHibernateTemplate().update(object);
	}
	
	@Override
	public List<? extends Object> list(long start, long end) {
		return null;
	}
}
